import Taro, { Component } from '@tarojs/taro'
import { View, Text } from '@tarojs/components'
import './systemnews.css'
import reactMixin from 'react-mixin';
import myJs from './systemnewsJs.js'
import app from '../../../main.js'

export default class SystemNews extends Component {

  config = {
    navigationBarTitleText: '系统消息'
  }
  constructor () { 
        super(...arguments); 
        this.state = this.getData(); 
    }
  init() { }

  render () {
    
    return (
      <View className='system-news'> 
        <View className='at-article__h1'>
        {this.state.message.title}
        </View>
        <View className='at-article__info'>
        {this.state.message.created_at}
        </View>
        <View className='at-article__content'>
          <View className='at-article__p'>
          {this.state.message.content}
          </View>
        </View>
      </View>
    )
  }
}
reactMixin.onClass(SystemNews,myJs);
